package com.yjt.fresh.adpater;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yjt.fresh.R;
import com.yjt.fresh.bean.BeanHistory;

import java.util.List;

public class AdpRvAtyHistoryVideoList extends BaseQuickAdapter<BeanHistory,BaseViewHolder> {
    public AdpRvAtyHistoryVideoList(int layoutResId, @Nullable List<BeanHistory> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BeanHistory item) {
        ImageView imageView = helper.getView(R.id.ivAppRecycleItemFrgHistoryHomeContent);
        Glide.with(imageView.getContext()).load(item.getCOVERIMAGE()).into(imageView);
        helper.setText(R.id.tvAppRecycleItemFrgHistoryHomeContentTitle, item.getTITLE());
    }
}
